package cn.wolfcode.Enum;

import lombok.Getter;

@Getter
public enum ActivityEnums {
    RADIO("单选",0),
    CHECKBOX("多选",1),
    OTHER("其他",2);
    private String name;
    private Integer value;

    ActivityEnums(String name, Integer value) {
        this.name = name;
        this.value = value;
    }
    public static String findName(Integer value){
        ActivityEnums[]enums=values();
        for (ActivityEnums anEnum : enums) {
            if (anEnum.value.equals(value)){
                return anEnum.name;
            }
        }
        return null;
    }

}
